<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class test_pushController extends Controller {

    public function actionTest($content) {
        echo($content);
        return;
        $url = 'http://api.xtify.com/2.0/push';
        $ch = curl_init();

        curl_setopt($ch, CURLOPT_URL, $url);

        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, "$content");
        curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/json"));
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

        $output = curl_exec($ch);
        curl_close($ch);

        return $output;
    }

}

?>
